/**
 * cn.com.oceansoft.modules.profile.service.impl.ProfileServiceImpl
 *
 * @author chenw
 * @create 16/4/27.21:46
 * @email javacspring@hotmail.com
 */

package cn.com.oceansoft.modules.profile.service.impl;

import cn.com.oceansoft.modules.profile.entity.SysUser;
import cn.com.oceansoft.modules.profile.persistence.SysUserMapper;
import cn.com.oceansoft.modules.profile.service.IProfileService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author chenw
 * @create 16/4/27 21:46
 * @email javacspring@gmail.com
 */
@Service
public class ProfileServiceImpl implements IProfileService {

    @Resource
    private SysUserMapper sysUserMapper;

    @Override
    public SysUser findById(String id) {
        return sysUserMapper.findById(id);
    }

    @Override
    public SysUser findByLoginIdAndPwd(String loginId, String password) {
        return sysUserMapper.findByLoginIdAndPwd(loginId, password);
    }
}
